﻿/****************************** Module Header ******************************\
 * Module Name:  tFinanceTransaction.cs
 * Module Version:  1.0.0 (2013-01-25)
 * Copyright (c) AnyEB.Com (14507247@qq.com)
 * 
 * This source is subject to the GPL License.
 * See http://www.gnu.org/licenses/gpl.html.
 * All other rights reserved.
 * 
 * THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, 
 * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED 
 * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE.
\***************************************************************************/

using System;

namespace UCL.Data.ORM.UMD
{
    /// <summary>
    /// 财务-资金管理-交易 数据实体类
    /// </summary>
    [DBTable(Common = "财务-资金管理-交易")]
    public class tFinanceTransaction
    {
        /// <summary>
        /// 流水号
        /// </summary>
        public string SerialNo { get { return _SerialNo; } set { _SerialNo = value; } }

        [DBColumn(Alias = "流水号", IsKey = true, Length = "32")]
        private string _SerialNo;

        /// <summary>
        /// 交易金额
        /// </summary>
        public decimal Amount { get { return _Amount ?? default(decimal); } set { _Amount = value; } }

        [DBColumn(Alias = "交易金额")]
        private decimal? _Amount;

        /// <summary>
        /// 付款人用户帐号
        /// </summary>
        public string FromUserName { get { return _FromUserName; } set { _FromUserName = value; } }

        [DBColumn(Alias = "付款人用户帐号", Length = "32")]
        private string _FromUserName;

        /// <summary>
        /// 收款人用户帐号
        /// </summary>
        public string ToUserName { get { return _ToUserName; } set { _ToUserName = value; } }

        [DBColumn(Alias = "收款人用户帐号", Length = "32")]
        private string _ToUserName;

        /// <summary>
        /// 付款人备注
        /// </summary>
        public string FromRemark { get { return _FromRemark; } set { _FromRemark = value; } }

        [DBColumn(Alias = "付款人备注", CanBeNull = true, Length = "255")]
        private string _FromRemark;

        /// <summary>
        /// 收款人备注
        /// </summary>
        public string ToRemark { get { return _ToRemark; } set { _ToRemark = value; } }

        [DBColumn(Alias = "收款人备注", CanBeNull = true, Length = "255")]
        private string _ToRemark;

        /// <summary>
        /// 交易状态
        /// </summary>
        public short State { get { return _State ?? default(short); } set { _State = value; } }

        [DBColumn(Alias = "交易状态", DefaultValue = "0")]
        private short? _State;

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreatedTime { get { return _CreatedTime ?? default(DateTime); } set { _CreatedTime = value; } }

        [DBColumn(Alias = "创建时间", DefaultValue = "getdate()")]
        private DateTime? _CreatedTime;

        /// <summary>
        /// 操作时间
        /// </summary>
        public DateTime ModifiedTime { get { return _ModifiedTime ?? default(DateTime); } set { _ModifiedTime = value; } }

        [DBColumn(Alias = "操作时间", CanBeNull = true)]
        private DateTime? _ModifiedTime;

        /// <summary>
        /// 是否删除
        /// </summary>
        public bool IsDeleted { get { return _IsDeleted ?? default(bool); } set { _IsDeleted = value; } }

        [DBColumn(Alias = "是否删除", DefaultValue = "0")]
        private bool? _IsDeleted;

        /// <summary>
        /// 网站标签
        /// </summary>
        public string SiteTag { get { return _SiteTag; } set { _SiteTag = value; } }

        [DBColumn(Alias = "网站标签", CanBeNull = true, Length = "16")]
        private string _SiteTag;

    }
}